package com.mdb.open.trade.service.trade.handle;

import com.mdb.bc.api.data.ResultEx;
import com.mdb.open.trade.feign.dto.BaseHeadSimpleDto;
import com.mdb.open.trade.feign.dto.CommonRequestDto;
import com.mdb.open.trade.service.trade.handle.dto.CreateDDAccDto;
import com.mdb.open.trade.service.trade.handle.vo.DDAccVo;
import org.springframework.stereotype.Service;


/**
 * @description: 核心贷款合约查询
 * @author: you.yichao
 * @create: 2019-07-18 21:23
 **/
@Service
public class DDAccHandle extends BaseHandle {


    public ResultEx<DDAccVo> createDDAcc(CreateDDAccDto dto, String refNo) {

        CommonRequestDto requestDto = new CommonRequestDto();
        BaseHeadSimpleDto simpleDto = new BaseHeadSimpleDto();
        simpleDto.setReqRef(refNo);

        requestDto.setHead(simpleDto);
        requestDto.setBody(dto);

        ResultEx<DDAccVo> resultEx = outReachWebFeignClient.requestCoreApi0351108(requestDto);

        return resultEx;
    }


}
